﻿<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\web\View;
use backend\models\service\AdminService as Admin;
?>

<div class="pushactivity-form">
    <article class="center">
        <!--<table>-->
            <?php $form = ActiveForm::begin([
                'fieldConfig'=>[
                    'template'=>"<div><div class=\"col-sm-3\">{label}</div>\n<div class=\"col-sm-9\">{input}</div>\n{error}</div>",
                ]
            ]); ?>
            <?=$form->field($model, 'username')->textInput(['maxlength' => 20,'placeholder' => "请输入渠道名称"])->label('渠道名称')?>
            <?=$form->field($model, 'pid')->dropDownList(Admin::items('2'), ['prompt' => '请选择合作方'])->label('所属合作方账号')?>
            <?=$form->field($model, 'cost')->textInput(['maxlength' => 20])->label('成本（选填）')?>
            <?=$form->field($model, 'remark')->textArea(['maxlength' => 20])->label('备注（选填）')?>
            <?= Html::submitButton('保存创建', ['class'=>'btn btn-primary','name' =>'submit-button']) ?>
            <?php ActiveForm::end(); ?>
            
        <!--</table>-->
        
    </article>
</div>